<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Fantasy</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    {% load static %}
    <link rel="stylesheet" href="{% static 'Fantasy/uikit.min.css' %}">
    <link rel="stylesheet" href="{% static 'Fantasy/main.css' %}">
</head>
<body>


<div class="uk-container"></div>
<div class="uk-container uk-margin-large-top uk-text-center">
    <div class="logo"><a href="/Fantasy"><img src="{% static 'Fantasy/img/logo.png' %}" class="uk-align-center"></a>
    </div>
    <div><span>这是你要的结果</span></div>
</div>

<div class="uk-container uk-margin-top uk-text-left">
    <h1 class="h1_index">搜索结果</h1>
    <ul class="uk-list uk-list-divider">

        {% for i in result %}
            <li class="uk-grid uk-grid-collapse">
                <span class="uk-width-small uk-visible@m">{{ i.pub_date }}</span>

                {% if i.link == '/media/files/' %}
                    <span class="uk-width-expand">
                        <a class="uk-text-break" href="{{ i.media_file.url }}"
                           title="{{ i.media_name }}">{{ i.media_name }}</a>
                        </span>
                    <span class="uk-width-auto uk-visible@m uk-align-right">
						<span class="uk-label"><b>{{ i.media_size }}M</b></span>
						<span class="uk-label uk-label-success down_txt"><a
                                href="{{ i.media_file.url }}"
                                title="{{ i.media_name }}">下载文件</a></span>
					</span>


                {% elif i.link is not None %}
                    <span class="uk-width-expand">
                        <a class="uk-text-break" href="{{ i.link }}" title="{{ i.media_name }}">{{ i.media_name }}</a>
                        </span>
                    <span class="uk-width-auto uk-visible@m uk-align-right">
                        <span class="uk-label"><b>{{ i.media_size }}M</b></span>
						<span class="uk-label uk-label-success down_txt"><a
                                href="{{ i.link }}"
                                title="{{ i.media_name }}">下载文件</a></span>
					</span>


                {% else %}
                    <span class="uk-width-expand">
                        <a class="uk-text-break" href="{{ i.media_file.url }}"
                           title="{{ i.media_name }}">{{ i.media_name }}</a>
                        </span>
                    <span class="uk-width-auto uk-visible@m uk-align-right">

						<span class="uk-label uk-label-success down_txt"><a
                                href="{{ i.media_file.url }}"
                                title="{{ i.media_name }}">下载文件</a></span>
					</span>
                {% endif %}
            </li>
        {% endfor %}

    </ul>
</div>
<div class="uk-container uk-margin-top uk-text-center">
    <p>Copyright 站长阿狸 </p>

    <p><a href="https://huang-hongzhe.gitee.io/" target="_blank" title="阿狸的博客">阿狸日志</a> | <a
            href="https://qm.qq.com/cgi-bin/qm/qr?k=EdFD5a6UFu6zrJZetn_CCGqW1cWcShtj&noverify=0" target="_blank"
            title="极影动漫">联系开发者</a></p>
</div>
<div style="display: none">

</div>
</body>
</html>
